package cn.edu.sdjzu.xg.eagle.xg23_kcsj_01.mapper;

import cn.edu.sdjzu.xg.eagle.xg23_kcsj_01.entity.Patent;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
@Mapper
public interface PatentMapper {
    //动态增加专利
    boolean addPatent(Patent patent);

    //根据专利号删除专利
    @Delete("DELETE FROM patent WHERE patent_no = #{patentNo}")
    boolean deletePatent(String patentNo);

    //根据专利号动态修改修改专利
    boolean updatePatent(Patent patent);

    //动态条件查询
    List<Patent> selectPatentsByCondition(Patent patent);


}

